package com.xyl.coap;

import org.eclipse.californium.core.CoapClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class CoapClientConfig {

    @Bean
    public CoapClient coapClient() {
        return new CoapClient("coap://localhost/example");
    }

}